public class Teacher {
    private String teacherId;
    private String name;
    private String gender;
    private Course teachingCourse;

    public Teacher(String teacherId, String name, String gender) {
        this.teacherId = teacherId;
        this.name = name;
        this.gender = gender;
    }

    public void openCourse(Course course) {
        this.teachingCourse = course;
        System.out.println("教师" + name + "开设了课程" + course.getCourseName());
    }

    public Course getTeachingCourse() {
        return teachingCourse;
    }

    public String getName() {
        return name;
    }
}
